//
//  LJHPlayListTableViewCell.m
//  HEARME
//
//  Created by mac on 16/2/24.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "LJHPlayListTableViewCell.h"

@implementation LJHPlayListTableViewCell
-(void)dealloc
{
    [_newsPic release];
    [_newsTitle release];
    [super dealloc];
}

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self createCell];
    }
    
    return self;
}

-(void)createCell
{
    self.newsPic = [[UIImageView alloc] initWithFrame:CGRectMake(self.contentView.bounds.origin.x + WIDTH*0.02, self.contentView.bounds.origin.y + WIDTH*0.02, WIDTH*0.1, WIDTH*0.1) ];
    self.newsPic.backgroundColor = [UIColor clearColor];
    self.newsPic.layer.masksToBounds = YES;
    self.newsPic.layer.cornerRadius = WIDTH*0.05;
    [self.contentView addSubview:self.newsPic];
    [_newsPic release];
    
    self.newsTitle = [[UILabel alloc] initWithFrame:CGRectMake(self.newsPic.frame.origin.x + self.newsPic.frame.size.width + HEIGHT*0.01, self.contentView.bounds.origin.y + self.newsPic.frame.size.height/2, 250*WIDTH/375, 20*HEIGHT/667)];
    self.newsTitle.backgroundColor = [UIColor clearColor];
    [self.contentView addSubview:self.newsTitle];
    [_newsTitle release];
}


@end
